using OrderManager.Domain.Repositories;

namespace OrderManager.DataAccess.Repositories
{
    /// <summary>
    /// Implements <see cref="OrderManager.Domain.Repositories.IRepositoryFactory"/> interface
    /// </summary>
    public class RepositoryFactory : IRepositoryFactory
    {
        /// <summary>
        /// Gets an instance of customer's repository
        /// </summary>
        /// <returns><see cref="OrderManager.DataAccess.Repositories.CustomerRepository"/></returns>
        public ICustomerRepository GetCustomerRepository()
        {
            return new CustomerRepository();
        }

        /// <summary>
        /// Gets an instance of order's repository
        /// </summary>
        /// <returns><see cref="OrderManager.DataAccess.Repositories.OrderRepository"/></returns>
        public IOrderRepository GetOrderRepository()
        {
            return new OrderRepository();
        }
    }
}